﻿class D3D.Style
{
	public var lco : Number;
	public var lth : Number;
	public var lal : Number;
	public var fco : Number;
	public var fal : Number;
	public function Style (ls, lc, la, fs, fa)
	{
		if(ls==undefined){
		lco = ls;   
		}else
		{
			lco=Number(ls);
		}
		lth = ((lc == undefined) ? 0 : ((lc < 0) ? 0 : lc));
		lal = ((la == undefined) ? 100 : ((la < 0) ? 0 : la));
		if(fs==undefined){
		fco = fs;
		}else
		{
			fco=Number(fs);
		}
		fal = ((fa == undefined) ? 100 : ((fa < 0) ? 0 : fa));
	}
	public function toString(){
		trace("------ Style ------");
		trace("lco="+lco);
		trace("lth="+lth);
		trace("lal="+lal);
		trace("fco="+fco);
		trace("fal="+fal);
		trace("-------------------")
	}
}
